import * as TYPES from '../action-types';
import {queryInfo, checkLogin, exitLogin} from '../../api/person';

let person = {
    queryBaseInfo() {
        return {
            type: TYPES.PERSON_QUERY_BASE,
            payload: queryInfo()
        }
    },
    login() {
        return {
            type: TYPES.PERSON_LOG_IN,
            payload: checkLogin()
        }
    },
    logout() {
        return {
            type: TYPES.PERSON_LOG_OUT,
            payload: exitLogin()
        }
    }
};
export default person;